﻿using System;
using System.Data;

namespace MvvmOrm.Models.DatabaseItemParameter
{
    public partial class Row
    {
        public string NameSanitized
        {
            get { return MainViewModel.SanitizeName(_Name); ; }
        }

        public ParameterDirection ParameterDirectionEnum
        {
            get { return (ParameterDirection)ParameterDirection; }
            set { ParameterDirection = (int)value; }
        }

        public DbType DbTypeEnum
        {
            get { return (DbType)DbType; }
            set { DbType = (int)value; }
        }

        public Type Type
        {
            get { return MainViewModel.GetType(DbTypeEnum); }
        }

        public string TypeStringed
        {
            get { return Type.ToString(); }
        }
    }
}
